home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / 3908.ZIP / DPN.HPP < prev    next >
C/C++ Source or Header  |  1993-04-19  |  1KB  |  41 lines

  1. //
  2. //      DPN.HPP
  3. //
  4. //      A header file for the C++ implementation of Distributed
  5. //      Processing Network
  6. //
  7. //      Copyright (c)1993  David G. Bellchambers
  8. //
  9.  
  10. #if __STDC__
  11. #define _Cdecl
  12. #else
  13. #define _Cdecl    cdecl
  14. #endif
  15.  
  16.  
  17. //      This is the definition for the Task class
  18.  
  19. class Task {
  20.            int  ErrorValue,ExitValue;
  21.            char ProgName[255],ProgParms[255],JobName[255];
  22.       public:
  23.            Task(char *Prog,char *Params);
  24.            virtual ~Task(void);
  25.            int  Finished(void);
  26.            int  ExitCode(void);
  27.            int  ErrorCode(void);
  28.            int  Kill(void);
  29. };
  30.  
  31.  
  32. //      These are the definitions for the global DPN functions
  33.  
  34. void _Cdecl  DPN_Initialise(void);              //  initialise the DPN system
  35. void _Cdecl  DPN_Pause(void);                   //  waits for NETTIME seconds
  36. void _Cdecl  DPN_NetDrive(char *Dest);          //  returns NETDRIVE in Dest string
  37. char _Cdecl *DPN_ErrorMsg(int Code,char *Dest); //  returns message for specified error
  38. int  _Cdecl  DPN_NetTime(void);                 //  returns value of NETTIME
  39. unsigned int _Cdecl DPN_Pending(void);         //  how many tasks are waiting?
  40.  
  41.